package com.face.classic.dto;

import com.face.classic.po.UserDetails;
import lombok.Data;

/**
 * @Author: lijie
 * @CreateTime: 2024-12-25  13:49
 * @Description:
 * @Version: 1.0
 */
@Data
public class WxLoginDTO {
    private String openid;
    private String session_key;
    private String unionid;
    private String errcode;
    private String errmsg;

    public UserDetails getUserDetails() {
        UserDetails userDetails = new UserDetails();
        userDetails.setOpenid(this.openid);
        userDetails.setSessionKey(this.session_key);
        return userDetails;
    }
}
